<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<form action="map-add" method="post">
	 {{ csrf_field() }}
  <div class="form-group">
    <label for="exampleInputEmail1">用户名</label>
    <input type="text" name="name" class="form-control" placeholder="请输入用户名">
  </div>
  <div class="form-group">
    <label for="exampleInputPassword1">密码</label>
    <input type="text" name="pwd" class="form-control" placeholder="请输入密码">
  </div>
  <div class="form-group">
    <label for="exampleInputPassword1">邮箱</label>
    <input type="text" name="email" class="form-control" placeholder="请输入邮箱">
  </div>
  <div class="form-group">
    <label for="exampleInputPassword1">手机号</label>
    <input type="text" name="tel" class="form-control" placeholder="请输入手机号">
  </div>
  <div class="form-group">
  	<label for="exampleInputPassword1">地址</label>
  	<input type="text" name="form" class="form-control" placeholder="请输入地址">
  	<img src="http://api.map.baidu.com/geocoding/v3/?address=".$address."&output=json&ak=cL0AA5pzmdzpQgF6gdcLE4BF0mEhP84Z" alt="">
  </div>
  </div>
  <button type="submit" class="btn btn-default" value="注册"></button>
</form>
<img src="http://api.map.baidu.com/geocoding/v3/?address=".$address."&output=json&ak=cL0AA5pzmdzpQgF6gdcLE4BF0mEhP84Z" alt="">
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
	<style type="text/css">
	body, html,#allmap {width: 1200px;height: 500px;overflow: hidden;margin:0;}
	</style>
	<script type="text/javascript" src="//api.map.baidu.com/api?v=2.0&ak=cL0AA5pzmdzpQgF6gdcLE4BF0mEhP84Z"></script>
	<title>地图展示</title>
</head>
<body>
	<div id="allmap"></div>
</body>
</html>
<script type="text/javascript">
	// 百度地图API功能
	var map = new BMap.Map("allmap");    // 创建Map实例
	map.centerAndZoom(new BMap.Point(<?php echo isset($lng)?$lng:'' ?>, <?php echo isset($lat)?$lat:'' ?>), 11);  // 初始化地图,设置中心点坐标和地图级别
	//添加地图类型控件
	map.addControl(new BMap.MapTypeControl({
		mapTypes:[
            BMAP_NORMAL_MAP,
            BMAP_HYBRID_MAP
        ]}));	  
	map.setCurrentCity("北京");          // 设置地图显示的城市 此项是必须设置的
	map.enableScrollWheelZoom(true);     //开启鼠标滚轮缩放
</script>
<?php echo isset($lng)?$lng:'' ?>
